<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<h2>修改用户名和密码</h2>
	<span th:text="${update}" style="display: inline; color: red;"></span>
	<h1>
		<span th:if="${#fields.hasErrors('${userBean.*}')}"><span
			th:errors="${userBean.*}"></span></span> <span th:text="${message}"></span>
	</h1>
	<form action="update" th:object="${userBean}" method="post">
		<div>
			<span><label>ID</label></span>
			<td><span th:text="${userBean.userId}"></span></td>
			<td><input name="userId" th:value="${userBean.userId}" value=""
				type="hidden" /></td>

		</div>
		<div>
			<span><label>Name</label></span> <span><input name="userName"
				th:value="${userBean.userName}" value="" type="text" /></span>
		</div>
		<div>
			<span><label>密码</label></span> <span><input name="password"
				type="password" /></span>
		</div>
		<div>
			<span><label>确认密码</label></span> <span><input
				name="repassword" type="password" /></span>
		</div>

		<div>
			<span><input type="submit" name="userupdate" value="确定" /></span>
		</div>
		<div>
			<span><input type="submit" name="backlogin1" value="返回" /></span>
		</div>
	</form>
</body>
</html>